﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GoShopping.BLL
{
    internal class User_IMember : IMember
    {
        #region IMember 成员

        /// <summary>
        /// 添加Membership成员
        /// </summary>
        /// <param name="member"></param>
        public void AddNewMember(System.Web.Security.MembershipUser member)
        {
            //UserInfo u = new UserInfo();
            //u.Name = member.UserName;
            Databases.DBGoShopping.Insert(GoShoppingNBear.UserInfo).AddColumn(GoShoppingNBear.UserInfo.Name, member.UserName).Execute();
        }

        /// <summary>
        /// 删除Member成员
        /// </summary>
        /// <param name="userName"></param>
        public void DeleteMember(string userName)
        {
            int b = Databases.DBGoShopping.Delete(GoShoppingNBear.UserInfo).Where(GoShoppingNBear.UserInfo.Name.Contains(userName)).Execute();
        }

        #endregion
    }
}
